﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
using System.Web.Mvc;
using NHibernate;

namespace Mindfor.Web
{
	/// <summary>
	/// Contains data to register module.
	/// </summary>
	public class ModuleRegistrationData
	{
		/// <summary>
		/// Gets data session.
		/// </summary>
		public ISession Data { get; private set; }

		/// <summary>
		/// Gets routes collection.
		/// </summary>
		public RouteCollection Routes { get; private set; }

		/// <summary>
		/// Gets global filters.
		/// </summary>
		public GlobalFilterCollection GlobalFilters { get; private set; }

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		/// <param name="data">Data session.</param>
		/// <param name="routes">Routes collection.</param>
		/// <param name="globalFilters">Global filters.</param>
		public ModuleRegistrationData(ISession data, RouteCollection routes, GlobalFilterCollection globalFilters)
		{
			Data = data;
			Routes = routes;
			GlobalFilters = globalFilters;
		}
	}
}
